package cn.airfei.aircore.core.exception;

import lombok.Data;

/**
 * @description: 异常处理
 * @author: air
 * @create: 2019-12-19 10:08
 **/
@Data
public class AppException extends RuntimeException {
    private Integer code = 500;
    private String msg;

    public AppException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public AppException(Integer code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

}

